import Vue from "vue";
import VueRouter from "vue-router";
import routes from "./route";

Vue.use(VueRouter);

const router = new VueRouter({
  routes,
});

router.afterEach((to, from) => {
  document.title = to.meta.title;
})

export default router;